package no.gnet.edvd.cron.types;

import no.gnet.edvd.types.Bet;

public class LosingBet extends DoneBet {

	public LosingBet(Bet bet) {
		super(bet);
	}

	public void handle(double am) {
		if (am + handled > amount) {
			throw new IllegalArgumentException("Cannot handle more than amount");
		}
		handled += am;
	}
}
